<template>
	<view class="contentA">
		<view class="top">
			<view class="title">{{title}}</view>
		<!-- 	<u-icon v-if="showIcon" name="trash" size="40" ></u-icon> -->
		</view>
		<view class="bottom">
			<view class="cuttag" v-for="it in list">
				<u-tag :text="it.text" size="mini" plain type="info" @click="onClickTag(it.text)">
				</u-tag>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "MyTags",
		props: {
			title: {
				type: String,
				default: ''
			},
			list: {
				type: Array,
				default () {
					return []
				}
			},
			showIcon:{
				type : Boolean,
				default : false
			}
		},
		data() {
			return {

			};
		},
		methods: {
			// onClickDel() {
			// 	this.$emit('chickIcon')
			// },
			onClickTag(text){
				this.$emit('chickTag',text)
			}
		}
	}
</script>

<style lang="scss">
	.contentA{
		margin-bottom: 20rpx;
	}
	.top {
		background-color: #fff;
		padding: 0 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		// margin-bottom: 20rpx;

		.title {
			font-size: 36rpx;
		}
	}

	.bottom {
		padding: 20rpx 20rpx;
		display: flex;
		flex-wrap: wrap;
		background-color: #fff;

		.cuttag {
			margin-right: 20rpx;
			padding-bottom: 20rpx;
		}

	}
</style>
